﻿using System.Numerics;
using System.Windows;

public static class PointExtension
{
    public static Point Multiply(this Point p, float f)
    {
        return new Point(p.X * f, p.Y * f);
    }

    public static Point Divide(this Point p, float d)
    {
        return new Point(p.X / d, p.Y / d);
    }

    public static Vector2 ToVector2(this Point p)
    {
        return new Vector2((float)p.X, (float)p.Y);
    }

    public static Point Vector2ToPoint(Vector2 vec2)
    {
        return new Point(vec2.X, vec2.Y);
    }
}
